package cn.liujing.controller;

import cn.liujing.entity.CommonResult;
import cn.liujing.entity.Payment;
import cn.liujing.service.PaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class controller {
    @Resource
    private PaymentService paymentService;

    @GetMapping("/payment/getpaymentbyId")
    public CommonResult getPaymentById(){
        Payment payment=paymentService.getPaymentById("1");
        return new CommonResult(200,"成功",payment);
    }


}
